package 传智播客_黑马.java高级.IO流.序列化;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.Arrays;

public class 反序列化 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        FileInputStream inputStream = new FileInputStream("D:\\IdeaProjects\\ALLMYTHING\\src\\传智播客_黑马\\IO\\序列化\\ins.txt");

        ObjectInputStream ois = new ObjectInputStream(inputStream);

        Person[] o = (Person[]) ois.readObject();
        System.out.println(Arrays.toString(o));

        ois.close();
    }
}
